package com.example.hello.util;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

public class PasswordUtil {
  public static void main(String[] args) {
    BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
    String password = "admin";
    String encodedPassword = encoder.encode(password);
    System.out.println("加密后的密码: " + encodedPassword);
  }
}